package com.contract.spirit.func.dialog

import android.annotation.SuppressLint
import android.content.Context
import com.contract.spirit.R
import com.contract.spirit.bean.entity.DialogBean
import com.contract.spirit.func.dialog.base.BaseCenterPopupView
import com.contract.spirit.func.dialog.base.BasePopDataBindImpl

/**
 * @author: zhengjun
 * created: 2021/9/24
 * desc:
 */
@SuppressLint("ViewConstructor")
class CommonRuleTipsDialog(context: Context, commonDialogInfo:DialogBean, onDialogCallBack: BasePopDataBindImpl.OnDialogCallBack?) :
    BaseCenterPopupView(context,commonDialogInfo,onDialogCallBack){
    override fun getImplLayoutId(): Int {
        return R.layout.dialog_bind_exchange_tips
    }

    companion object{
        fun show(context: Context,dialogBean: DialogBean,onDialogCallBack: BasePopDataBindImpl.OnDialogCallBack?=null) : CommonRuleTipsDialog{
            val dialog = CommonRuleTipsDialog(context,dialogBean,onDialogCallBack)
            showDialog(context,dialog)
            return dialog
        }
    }
}